package com.itheima.entry;

import com.itheima.controller.StudentController;
import com.itheima.controller.TeacherController;
import com.itheima.domain.Teacher;

import java.util.Scanner;

public class ManageEntry {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while(true){
            System.out.println("------欢迎来到黑马管理系统------");
            System.out.println("1.学生管理   2.老师管理    3.退出");
            String next = sc.next();
            switch(next){
                case "1":
                    StudentController s = new StudentController();
                    s.startStudent();
                    break;
                case "2":
                    TeacherController t = new TeacherController();
                    t.startTeacher();
                    break;
                case "3":
                    System.out.println("感谢您的使用！");
                    return;
                default:
                    System.out.println("输入正确的数字");
            }
        }

    }
}
